import 'package:flutter/material.dart';
import 'package:test_flutter/generated/l10n.dart';

///国际化
class LocalizationPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _LocalizationPageState();
}

class _LocalizationPageState extends State<LocalizationPage> {
  @override
  Widget build(BuildContext context) {
    return new Container(
      alignment: Alignment.center,
      color: Colors.white,
      child: new TextButton(
        onPressed: () {
          print("提示:${S.of(context).common_error_network}");
        },
        child: new Text('提示'),
      ),
    );
  }
}
